export function resize(myChart: any) {
  const arr: any = [];
  return (window.onresize = () => {
    arr.push(myChart);
    arr.map((item: any) => {
      return item.resize();
    });
  });
}
